//
//  ZYThirdShareConstans.h
//  SuiTong
//
//  Created by 石志愿 on 2020/9/3.
//  Copyright © 2020 石志愿. All rights reserved.
//

#ifndef ZYThirdShareConstans_h
#define ZYThirdShareConstans_h

///分享内容
typedef enum : NSUInteger {
    /// 网址
    ZYShareTypeWebPage = 0,
    /// 文本
    ZYShareTypeText,
    /// 图片
    ZYShareTypeImage,
} ZYShareType;

/// 分享平台
typedef enum : NSUInteger {
    /// QQ会话
    ZYSharePlatformQQ,
    /// QQ空间
    ZYSharePlatformQzone,
    /// 微信会话
    ZYSharePlatformWXSession,
    ///朋友圈
    ZYSharePlatformWXTimeline,
    /// 微博
    ZYSharePlatformWeiBo,
    /// 复制链接
    ZYSharePlatformCopylink,
} ZYSharePlatform;


/// 登录平台
typedef enum : NSUInteger {
    ZYThirdLoginPlatformQQ,
    ZYThirdLoginPlatformWeChat,
    ZYThirdLoginPlatformWeiBo,
    ZYThirdLoginPlatformApple,
} ZYThirdLoginPlatform;


typedef enum : NSUInteger {
    ZYShareStatusCancel = 2,
    ZYShareStatusFailed = 1,
    ZYShareStatusSuccess = 0,
} ZYShareStatus;

#import "ZYThirdShareInfo.h"

//微信
static NSString *const kWXUniversalLink = @"https://api.scisight.cn/iosapp/apple-app-site-association/";
static NSString *const kWxAppKey = @"wxd4db29e406a60775";
static NSString *const kWxSecret = @"53b8debd935813355ec2f37462880137";

//QQ
static NSString *const kQQUniversalLink = @"https://api.scisight.cn/qq_conn/101844110";
static NSString *const kQQAppKey = @"101844110";
static NSString *const kQQSecret = @"";

//微博
static NSString *const kWbAppKey = @"";
static NSString *const kWbSecret = @"";
static NSString *const kWbRedirectURI = @"";

///分享回调
typedef void (^ZYThirdShareBlock)(ZYShareStatus code);

///登录回调
typedef void (^ZYThirdLoginBlock)(ZYThirdLoginInfo * __nullable info, ZYShareStatus code);


#endif /* ZYThirdShareConstans_h */
